package com.zhu.service.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhu.model.pojo.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhu.model.pojo.model.system.SysRole;
import com.zhu.model.pojo.model.system.SysUserRole;
import com.zhu.model.pojo.model.system.vo.AssginRoleVo;

import java.util.Map;


/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author zhu
 * @since 2022-10-28
 */
public interface IRoleService extends IService<SysRole> {

    IPage<SysRole> selectPage(Page<SysRole> pageParam, String roleName);

    IPage<SysRole> selectPage2(Page<SysRole> pageParam,String  roleName);

    Map<String, Object> getRolesByUserId(Long userId);

    Boolean assignRole(AssginRoleVo assginRoleVo);
}
